export const removeEmpty = (obj: any) => {
    let newObj: any = {};
    Object.keys(obj).forEach((key) => {
        if (obj[key] === Object(obj[key])) newObj[key] = removeEmpty(obj[key]);
        else if (obj[key] !== undefined) newObj[key] = obj[key].trim();
    });
    return newObj;
};

